package com.helen.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.helen.shopping.R;
import com.helen.utils.ImageLoadUtil;
import com.helen.utils.MyLog;

import java.util.List;


/**
 * Created by yang on 2018/5/15.
 */

public class SingleImgAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public SingleImgAdapter(int layoutResId, List<String> data) {
        super(layoutResId, data);
    }
    @Override
    protected void convert(final  BaseViewHolder helper, final String item) {
        try {
            ImageView img = (ImageView) helper.getView(R.id.img_item);
            ImageLoadUtil.displayImage(mContext,img,item,R.mipmap.app_logo,R.mipmap.app_logo);
        } catch (Exception e) {
            MyLog.e("yang", "评论图片异常" + e.toString());
        }


    }


}
